

def in_try(url, find_str=''):
    find_list = []
    with open(url, 'r', encoding='utf-8') as file:
        line = file.readline()
        while line:
            if line.find(find_str) >= 0 :
                find_list.append(line)
                print(line)
            line = file.readline()
    return find_list


def out_try(url, content):
    with open(url, 'w', encoding='utf-8') as file:
        file.write(content)

    pass


#f = in_try('C:/Users/xingran.xiong/Desktop/Memorandum')
#print('-----------------')
#print(f.readline())